package org.tech4j.common.core.request.param;

import jakarta.servlet.http.HttpServletRequest;
import org.tech4j.common.spi.SPI;

import java.util.Collections;
import java.util.Map;

/**
 * @program: tech4j-common
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/2 19:59
 **/
@SPI
public interface ParameterData {

    /**
     * Builder string.
     *
     * @param paramName the param name
     * @param request the request
     * @return the string
     */
    default String builder(final String paramName, final HttpServletRequest request) { return ""; }

    /**
     * Builder map.
     *
     * @param paramName the param name
     * @param request the request
     * @return the map
     */
    default Map<String, Object> builderMap(final String paramName, final HttpServletRequest request) { return Collections.emptyMap(); }
}
